package com.wngbms.projectreactor;

import com.wngbms.projectreactor.bean.Favorite;
import lombok.extern.slf4j.Slf4j;
import reactor.core.publisher.Mono;

@Slf4j
public class FavoriteService {

    public Mono<Favorite> getDetails(String id) {
        log.info("fid:{}", id);

        UserService.sleep(5000);
        Favorite favorite = new Favorite();
        favorite.setId(id);
        favorite.setDesc(id + "\t desc");

        return Mono.just(favorite);
    }


}
